package com.hnx.admin.aurora.captcha.core;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/*
创建人： 倔强的头发
创建时间：2025/6/14
功能描述:

*/
@Getter
@Setter
@Component
@ConfigurationProperties(prefix = "admin.captcha")
public class CaptchaProperties {
    private CharConfig charConfig = new CharConfig();
    private MathConfig mathConfig = new MathConfig();
    @Setter
    @Getter
    public static class CharConfig{
        private int length = 4;
        private String source = "abcde2345678gfynmpwx";
        private int width = 146;
        private int height = 50;
        private String fontColor = "black";
        private int fontSize = 38;
    }
    @Setter
    @Getter
    public static class MathConfig{
        private int width = 150;
        private int height = 50;
        private String fontColor = "blue";
        private int fontSize = 38;
    }

}
